<LINK title=win2k-1 media=all href="file/calendar-win2k-1.css" type=text/css rel=stylesheet>
<SCRIPT src="file/calendar.js" type=text/javascript></SCRIPT>  
<SCRIPT src="file/calendar-setup.js" type=text/javascript></SCRIPT>
<SCRIPT src="file/calendar-en.js" type=text/javascript></SCRIPT>

<?php
$table = "banner";
$mod = $_GET['mod'];
$numadd = 1;
if (isset($_POST['numadd']))
    $numadd = $_POST['numadd'];
$title_add = '"Banner"';
?>

<script type="text/javascript">
    function checkinput()
    {

        return true;
    }

    function save()
    {
        var frm = document.frmadd;
        if (checkinput())
        {
            frm.action = "?mod=<?= $mod ?>&act=process";
            frm.method = "POST";
            frm.submit();
        }
    }

    function resetfrom()
    {
        document.frmedit.reset();

    }

</script>

<div class="page-header">
    <div class="pull-left"><?= $title_add ?></div>
    <div class="pull-right"></div>
    <div class="clear"></div>
</div>

<form name="frmadd" method="post" enctype="multipart/form-data" onSubmit="return checkinput();" class="form-horizontal">

    <?php
    for ($i = 1; $i <= $numadd; $i++) {
        ?>	
        <div class="form-group">
            <label class="col-sm-3 control-label">Image (1600px*550px) : </label>
            <div class="col-sm-9">
                <input type="file" name="image_<?= $i ?>" />
            </div>
        </div>
        <?php
    }
    ?>
    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-9">
            <button type="button" class="btn btn-primary" onClick="save();">Save</button>
            <button type="reset" class="btn btn-default">Reset</button>
        </div>
    </div>
    <input type="hidden" name="form_" value="add">
    <input type="hidden" name="numadd" value="<?= $numadd ?>">
</form>